﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace LastoRevival.Service.Contracts.Models
{
	public class LogOnModel
	{
		[Required(ErrorMessageResourceType = typeof(ValidationMessageLoader), ErrorMessageResourceName = "User_UsernameRequiredError")]
		[StringLength(StringLengthConstants.UsernameMaxLength, ErrorMessageResourceType = typeof(ValidationMessageLoader), ErrorMessageResourceName = "StringLengthError")]
		public string UserName { get; set; }

		[Required(ErrorMessageResourceType = typeof(ValidationMessageLoader), ErrorMessageResourceName = "User_PasswordRequiredError")]
		[StringLength(StringLengthConstants.PasswordMaxLength, ErrorMessageResourceType = typeof(ValidationMessageLoader), ErrorMessageResourceName = "StringLengthError")]
		public string Password { get; set; }

		public bool RememberMe { get; set; }
	}
}
